package com.caesar.unsafe;

/**
 * @author caesar
 * @date 2025/7/21
 * @Description:存在线程安全隐患，这里发现并没有像想象中那样卖出10张票
 * @apiNote
 */
public class TestTicketTwo {
    public static void main(String[] args) {
        TicketTwo t1 =new TicketTwo();
        TicketTwo t2 =new TicketTwo();
        TicketTwo t3 =new TicketTwo();

        t1.start();
        t2.start();
        t3.start();
    }
}
